package com.tvb.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class TestController {
	
	
	private String url;
	@Value(value="#{jdbc['jdbc.name']}")
	public void setUrl(String url) {
		this.url = url;
	}

	@RequestMapping(value = "/test.do")
	public ModelAndView test() {
		ModelAndView medelView = new ModelAndView("hello");
		System.out.println(url);
		try {
		} catch (Exception e) {
			e.printStackTrace();
		}
		return medelView;
	}
}
